//
var TN_Widget = function() {
return {
//Options
newWindow : true,
linkText : "view
tickets",
tixUrl : "http://www.ticketnetwork.com/tix/",
trackingParams : "",
custLink : true,
//depricated
kbid : "",
//Overwrittable functions
trackingLink :"",
CreateCustomUrl : function(row) {
return this.tixUrl + row[7] + "-tickets-"+ row[6] + ".aspx";
},
CreateEventRow : function(row, isAlt) {
return "
" +
row[0] +" | " +
row[1] +" " +
row[2] +" | " +
row[3] +" " +
row[4] + " " +
row[5] + " | "+ this.linkText+ " |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kywrds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
if(this.kbid != "")
this.trackingParams = "?img=249&kbid="+this.kbid;
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = '' + newTable.join('') + '
';
} else
document.write('' + newTable.join('') + '
');
if(eventData.length >= 100 && kywrds != undefined) {
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML += '';
} else {
document.write("");
}
}
if(eventData.length > 0) {
document.getElementById("previewNote").style.display = "none";
}
}
};
}();
//BPW-TNSERV-01B
TN_Widget.CreateTable([['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Saturday','6/29/2024','7:30 PM','6366600','The-Great-Gatsby---Theatrical-Production-6-29-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Sunday','6/30/2024','2:00 PM','6368818','The-Great-Gatsby---Theatrical-Production-6-30-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Tuesday','7/2/2024','7:30 PM','6368819','The-Great-Gatsby---Theatrical-Production-7-2-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Wednesday','7/3/2024','2:00 PM','6368820','The-Great-Gatsby---Theatrical-Production-7-3-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Wednesday','7/3/2024','7:30 PM','6368821','The-Great-Gatsby---Theatrical-Production-7-3-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Friday','7/5/2024','7:30 PM','6368822','The-Great-Gatsby---Theatrical-Production-7-5-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Saturday','7/6/2024','2:00 PM','6369101','The-Great-Gatsby---Theatrical-Production-7-6-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Saturday','7/6/2024','7:30 PM','6369102','The-Great-Gatsby---Theatrical-Production-7-6-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Sunday','7/7/2024','2:00 PM','6374625','The-Great-Gatsby---Theatrical-Production-7-7-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Tuesday','7/9/2024','7:30 PM','6374626','The-Great-Gatsby---Theatrical-Production-7-9-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Wednesday','7/10/2024','2:00 PM','6374627','The-Great-Gatsby---Theatrical-Production-7-10-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Wednesday','7/10/2024','7:30 PM','6380534','The-Great-Gatsby---Theatrical-Production-7-10-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Thursday','7/11/2024','7:30 PM','6380535','The-Great-Gatsby---Theatrical-Production-7-11-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Friday','7/12/2024','7:30 PM','6382983','The-Great-Gatsby---Theatrical-Production-7-12-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Saturday','7/13/2024','2:00 PM','6382984','The-Great-Gatsby---Theatrical-Production-7-13-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Saturday','7/13/2024','7:30 PM','6410525','The-Great-Gatsby---Theatrical-Production-7-13-2024'],['The Great Gatsby - Theatrical Production - ASL Interpreted Performance','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Sunday','7/14/2024','2:00 PM','6405566','The-Great-Gatsby---Theatrical-Production---ASL-Interpreted-Performance-7-14-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Tuesday','7/16/2024','7:30 PM','6405567','The-Great-Gatsby---Theatrical-Production-7-16-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Wednesday','7/17/2024','2:00 PM','6410526','The-Great-Gatsby---Theatrical-Production-7-17-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Wednesday','7/17/2024','7:30 PM','6413795','The-Great-Gatsby---Theatrical-Production-7-17-2024'],['The Great Gatsby - Theatrical Production','The Loeb Drama Center At American Repertory Theatre','Cambridge, MA','Thursday','7/18/2024','7:30 PM','6418421','The-Great-Gatsby---Theatrical-Production-7-18-2024']],'American Repertory Theater','http://www.ticketnetwork.com/ticket/American-Repertory-Theater-events.aspx');